import service from "@/utils/request.js";
import qs from 'qs';

const orderApi = {
	add(orderDTO) {
		return service.post("/order/add", orderDTO);
	},
	selectById(orderNo) {
		return service.get(`/order/selectById/${orderNo}`);
	},
	pay(orderNo) {
		return service.put(`/order/pay/${orderNo}`);
	},
	selectListByUser() {
		return service.get("/order/selectListByUser");
	}
};


export default orderApi;